﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Cxj.WPF.Models;

namespace Cxj.WPF.ViewModels
{
    public class ExampleViewModel
    {
        public AddModel Model { get; set; } = new AddModel();



        public ExampleViewModel()
        {
            Model.BtnCommand = new Command();
            Model.BtnCommand.DoExecute = new Action(Add);
        }

        private void Add()
        {
            Model.Value3 = Model.Value1 + Model.Value2;
        }
    }
}
